import request from '@/utils/request'

// 查询设备使用记录列表
export function listEquipmentuse(query) {
  return request({
    url: '/equipment/equipmentuse/list',
    method: 'get',
    params: query
  })
}

// 查询设备使用记录详细
export function getEquipmentuse(id) {
  return request({
    url: '/equipment/equipmentuse/' + id,
    method: 'get'
  })
}

// 新增设备使用记录
export function addEquipmentuse(data) {
  return request({
    url: '/equipment/equipmentuse',
    method: 'post',
    data: data
  })
}

// 修改设备使用记录
export function updateEquipmentuse(data) {
  return request({
    url: '/equipment/equipmentuse',
    method: 'put',
    data: data
  })
}

// 删除设备使用记录
export function delEquipmentuse(id) {
  return request({
    url: '/equipment/equipmentuse/' + id,
    method: 'delete'
  })
}
